package com.yt.base.util.json.tree;

import java.util.Comparator;

// Referenced classes of package com.htsoft.core.json.tree:
//            Node

public class NodeIDComparator implements Comparator {

	public NodeIDComparator() {
	}

	public int compare(Node o1, Node o2) {
		int j1 = Integer.parseInt(o1.id);
		int j2 = Integer.parseInt(o2.id);
		return j1 >= j2 ? ((int) (j1 != j2 ? 1 : 0)) : -1;
	}

	public int compare(Object obj, Object obj1) {
		return compare((Node) obj, (Node) obj1);
	}
}
